ocaml: use libxl IDL type helpers for C argument passing
authorIan Campbell <ian.campbell@citrix.com>
Tue, 31 Jan 2012 14:40:08 +0000 (14:40 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 31 Jan 2012 14:40:08 +0000 (14:40 +0000)
commita59e9ff00257f505fab61196facdd15bbb53fdab
tree042fa657857a2291633ca22707632e4a0386757b
parentdd715a77b3426792d2b09543590a0d59450c14bd
ocaml: use libxl IDL type helpers for C argument passing

Makes handling of nested structs more correct.

Only change to the generated code right now is that the FOO_Val
(C->ocamlC) function for Enumeration types now takes the C argument by
value instead of reference.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
tools/ocaml/libs/xl/genwrap.py